package com.jersey;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;


@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "feed")
public class DealCategoriesData {
	private Integer responseCode = 0;
	private String errorMessage = null;
	@XmlElement(name = "category")
	private List<DealCategoryBean> categories = null;
	public DealCategoriesData() {
		
	}
	public DealCategoriesData(List<DealCategoryBean> categories) {
		this.categories = categories;
	}
	
	public DealCategoriesData(ResponseMessage responseMessage) {
		this.responseCode = responseMessage.getCode();
		this.errorMessage = responseMessage.getErrorMessage();
	}
	
	public Integer getResponseCode() {
		return responseCode;
	}
	public void setResponseCode(Integer responseCode) {
		this.responseCode = responseCode;
	}
	public String getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	public List<DealCategoryBean> getCategories() {
		return categories;
	}
	public void setCategories(List<DealCategoryBean> categories) {
		this.categories = categories;
	}
	
	
}
